// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.jasmin.memory;

/**
 * 32-bit addressed memory of 32-bit values.
 * 
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public interface Memory {
  /**
   * Writes given value at given address.
   * 
   * @param address address
   * @param value value
   */
  void write(int address, int value);
  
  /**
   * Reads value from given address.
   * 
   * @param address address
   * @return value
   */
  int read(int address);
}
